package com.itheima.service;

import com.itheima.common.PageInfo;
import com.itheima.dto.DishDto;
import com.itheima.vo.DishVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface DishService {


    PageInfo<DishVo> page(String name,Integer page, Integer pageSize,Integer type);

    boolean save(DishDto dishDto);

    boolean update(DishDto dishDto);


    List<DishVo> getList(String categoryId);

    boolean delete(List<String> ids);

    DishVo getById(String id);


    boolean sell(List<String> ids, int status);

    List<DishVo> clientGetList(String categoryId, Integer status, Integer page, Integer pageSize);
}
